﻿using System.Collections;
using System.Collections.Generic;
using UnityEngine;
namespace Nirvana.SoundCommon
{
    /// <summary>
    /// 基本playerAudio控制接口，全局单例，不作具体功能，用于在快速频繁创建audio时，
    /// 当上一个audio功能还未执行结束时，触发一个空执行逻辑
    /// </summary>
    public sealed class PlayerAudioBasic : IPlayerAudio
    {
        private static PlayerAudioBasic inst;
        public static PlayerAudioBasic Instance
        {
            get
            {
                if (inst == null) inst = new PlayerAudioBasic();
                return inst;
            }
        }

        public bool IsPlaying => false;
        public AudioItemMixerGroup GetMixerGroupType()
        {
            return AudioItemMixerGroup.UISoundGroup;
        }
        public float GetRamingTime()
        {
            return 0;
        }

        public void Play() { }


        public void Remove() { }


        public void Set(Vector3 pos) { }


        public void Set(Transform root) { }


        public void Stop() { }
        public void Mute(bool isMute) { }

        public void Update() { }


        public IEnumerator WaitFinish()
        {
            yield return null;
        }

        public void Dispose()
        {
           
        }
        public AudioSubItemData GetAudioSubItemData()
        {
            return null;
        }

        public string GetAudioName()
        {
            return null;
        }


    }
}